import java.io.*;

public class DataStreamDemo {
    public static void main(String[] args) {
        try {
            DataInputStream in = new DataInputStream(new FileInputStream("test1.txt"));
            DataOutputStream out = new DataOutputStream(new FileOutputStream("test2.txt"));
            BufferedReader d  = new BufferedReader(new InputStreamReader(in));

            String count;
            while((count = d.readLine()) != null){
                String u = count.toUpperCase();
                System.out.println(u);
                out.writeBytes(u + "  ,");
            }
            d.close();
            out.close();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
